(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/home/components/home-activity"],{

/***/ 495:
/*!*****************************************************!*\
  !*** ./src/pages/home/components/home-activity.vue ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _home_activity_vue_vue_type_template_id_2bf3deea___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./home-activity.vue?vue&type=template&id=2bf3deea& */ 496);
/* harmony import */ var _home_activity_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./home-activity.vue?vue&type=script&lang=js& */ 498);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _home_activity_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _home_activity_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _home_activity_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./home-activity.vue?vue&type=style&index=0&lang=scss& */ 500);
/* harmony import */ var _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 15);

var renderjs





/* normalize component */

var component = Object(_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _home_activity_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _home_activity_vue_vue_type_template_id_2bf3deea___WEBPACK_IMPORTED_MODULE_0__["render"],
  _home_activity_vue_vue_type_template_id_2bf3deea___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  null,
  null,
  false,
  _home_activity_vue_vue_type_template_id_2bf3deea___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "pages/home/components/home-activity.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 496:
/*!************************************************************************************!*\
  !*** ./src/pages/home/components/home-activity.vue?vue&type=template&id=2bf3deea& ***!
  \************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_14_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_template_id_2bf3deea___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--14-0!../../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home-activity.vue?vue&type=template&id=2bf3deea& */ 497);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_14_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_template_id_2bf3deea___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_14_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_template_id_2bf3deea___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_14_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_template_id_2bf3deea___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_14_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_template_id_2bf3deea___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),

/***/ 497:
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--14-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/pages/home/components/home-activity.vue?vue&type=template&id=2bf3deea& ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components = {
  uniLoadMore: function () {
    return Promise.all(/*! import() | components/uni-load-more/uni-load-more */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/uni-load-more/uni-load-more")]).then(__webpack_require__.bind(null, /*! @/components/uni-load-more/uni-load-more.vue */ 628))
  },
  mpHtml: function () {
    return Promise.all(/*! import() | components/mp-html/mp-html */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/mp-html/mp-html")]).then(__webpack_require__.bind(null, /*! @/components/mp-html/mp-html.vue */ 509))
  },
}
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  var l0 = _vm.__map(_vm.goodsList, function (item, __i0__) {
    var $orig = _vm.__get_orig(item)

    var m0 = _vm.getDelivery(item.delivery_method)
    var m1 = _vm.isAddBtnShow(item)
    var m2 = m1 && !(item.stock_num * 1 <= 0) ? Number(item.market_bi) : null
    var m3 = m1 && !(item.stock_num * 1 <= 0) ? Number(_vm.biNumber) : null
    return {
      $orig: $orig,
      m0: m0,
      m1: m1,
      m2: m2,
      m3: m3,
    }
  })

  if (!_vm._isMounted) {
    _vm.e0 = function ($event) {
      _vm.$refs.shopStoreNode.moreStoreShow = true
    }

    _vm.e1 = function ($event) {
      _vm.assestShow = true
    }

    _vm.e2 = function ($event) {
      _vm.kms = $event
    }

    _vm.e3 = function ($event) {
      _vm.storeName = $event
      _vm.changeStore($event)
    }

    _vm.e4 = function ($event) {
      _vm.cartPopup = false
    }
  }

  _vm.$mp.data = Object.assign(
    {},
    {
      $root: {
        l0: l0,
      },
    }
  )
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 498:
/*!******************************************************************************!*\
  !*** ./src/pages/home/components/home-activity.vue?vue&type=script&lang=js& ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib!../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home-activity.vue?vue&type=script&lang=js& */ 499);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 499:
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/pages/home/components/home-activity.vue?vue&type=script&lang=js& ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _home = __webpack_require__(/*! @/api/home */ 8);

var _user = __webpack_require__(/*! @/api/user */ 12);

var _brandInfo = __webpack_require__(/*! @/api/brandInfo */ 33);

var _goods = __webpack_require__(/*! @/api/goods */ 205);

var _index = __webpack_require__(/*! @/utils/index.js */ 20);

function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }

function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }

function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

var PopUpModal = function PopUpModal() {
  __webpack_require__.e(/*! require.ensure | components/pop-up-modal */ "components/pop-up-modal").then((function () {
    return resolve(__webpack_require__(/*! @/components/pop-up-modal */ 517));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};

var shopStore = function shopStore() {
  Promise.all(/*! require.ensure | components/showToast/shopStore */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/showToast/shopStore")]).then((function () {
    return resolve(__webpack_require__(/*! @/components/showToast/shopStore.vue */ 592));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};

var changeMethods = function changeMethods() {
  __webpack_require__.e(/*! require.ensure | components/showToast/changeMethods */ "components/showToast/changeMethods").then((function () {
    return resolve(__webpack_require__(/*! @/components/showToast/changeMethods.vue */ 578));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};

var showCart = function showCart() {
  __webpack_require__.e(/*! require.ensure | components/showToast/showCart */ "components/showToast/showCart").then((function () {
    return resolve(__webpack_require__(/*! @/components/showToast/showCart.vue */ 585));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};

var addBuy = function addBuy() {
  __webpack_require__.e(/*! require.ensure | components/showToast/addBuy */ "components/showToast/addBuy").then((function () {
    return resolve(__webpack_require__(/*! @/components/showToast/addBuy.vue */ 571));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};

var HxLoginShow = function HxLoginShow() {
  __webpack_require__.e(/*! require.ensure | components/hx-login-show */ "components/hx-login-show").then((function () {
    return resolve(__webpack_require__(/*! @/components/hx-login-show */ 531));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};

var HxToast = function HxToast() {
  __webpack_require__.e(/*! require.ensure | components/hx-diy-toast */ "components/hx-diy-toast").then((function () {
    return resolve(__webpack_require__(/*! @/components/hx-diy-toast */ 614));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};

var _default = {
  components: {
    shopStore: shopStore,
    changeMethods: changeMethods,
    showCart: showCart,
    addBuy: addBuy,
    PopUpModal: PopUpModal,
    HxLoginShow: HxLoginShow,
    HxToast: HxToast
  },
  data: function data() {
    return {
      listHeight: 0,
      listBoxHeight: 0,
      goodsBoxHeight: 0,
      screenBoxIndex: 0,
      params: {
        page: 1,
        page_size: 20,
        store_uuid: '',
        brand_uuid: '',
        keyword: '',
        class_id: '',
        delivery_method: '',
        sort_desc: '',
        // desc 从大到小 asc 从小到大
        sort_type: null,
        // 排序 1惠花 2销量 不传为综合
        is_pay_amount: null,
        // 1惠花单独兑换 2惠花+现金
        market_bi: null // 用户当前惠花

      },
      userInfo: {},
      // 用户信息
      biNumber: 0,
      // 当前品牌货币数量
      storeName: '请选择门店',
      // 当前门店
      brandList: [],
      // 品牌列表
      brandIndex: 0,
      typeList: [],
      // 商品分类
      deliveryList: [// 配送方式
      {
        text: '全部',
        value: null
      }, {
        text: '堂食',
        value: 1
      }, {
        text: '快递',
        value: 2
      }, {
        text: '自提',
        value: 3
      }, {
        text: '兑换',
        value: 4
      }],
      goodsList: [],
      // 商品列表
      goodsTotal: 0,
      // 商品总数
      addCardInfo: {},
      showShopp: false,
      cartPopup: true,
      kms: '',
      navBarMarginTop: null,
      navBarHeight: null,
      pageTitle: null,
      contentText: {
        contentdown: '上拉显示更多',
        contentrefresh: '正在加载...',
        contentnomore: '没有更多数据了'
      },
      BgUrl: '',
      isRefresh: false,
      isShoppingCart: false,
      deliveryIndex: 0,
      vipShoppingInfo: {},
      currentPosition: {},
      assestShow: false,
      member_assets_config: {
        content: ''
      },
      showRefresh: true,
      showContent: '',
      ceShow: true,
      desk_no: null,
      isLoginShow: false,
      scrollLeft: 0,
      showFloat: true,
      timer: null,
      start_time: 0,
      end_time: 0,
      isVideoLive: false,
      // 是否正在直播
      windowData: {},
      // 悬浮窗数据
      goodsListKey: false,
      // 列表scroll-view刷新
      isHxToast: false,
      hxToastText: '',
      timerId: null
    };
  },
  watch: {},
  computed: {
    isScreenBoxSelect: function isScreenBoxSelect() {
      var status = this.params.sort_type === 1 && this.params.sort_desc;
      return status;
    },
    // 当前品牌
    brandName: function brandName() {
      var _this = this;

      var item = this.brandList.find(function (i) {
        return i.uuid === _this.params.brand_uuid;
      });
      return (item === null || item === void 0 ? void 0 : item.name) || '';
    },
    getDelivery: function getDelivery() {
      var _this2 = this;

      return function (delivery) {
        var arr = [];

        _this2.deliveryList.forEach(function (v) {
          if (delivery.includes(v.value)) {
            arr.push(v.text);
          }
        });

        return arr.join(' | ');
      };
    },
    // 是否显示商品操作区域
    isAddBtnShow2: function isAddBtnShow2() {
      var status = true;
      var _this$params$brand_uu = this.params.brand_uuid,
          brand_uuid = _this$params$brand_uu === void 0 ? '' : _this$params$brand_uu; // 没有品牌uuid或者品牌uuid为大惠的时候不展示操作区

      if (!brand_uuid || brand_uuid === 'b80f0a89c2e3cea57dcd5193fdb651fc') {
        status = false;
      }

      return status;
    },
    // 是否显示商品操作区域
    isAddBtnShow: function isAddBtnShow() {
      var _this3 = this;

      return function (val) {
        var _val$brand_item$, _val$brand_item$2;

        var status = true;
        var _this3$params$brand_u = _this3.params.brand_uuid,
            brand_uuid = _this3$params$brand_u === void 0 ? '' : _this3$params$brand_u; // 条件1：选择大惠时

        var condition1 = brand_uuid === 'b80f0a89c2e3cea57dcd5193fdb651fc'; // 条件2：属于大惠的商品

        var condition2 = (val === null || val === void 0 ? void 0 : (_val$brand_item$ = val.brand_item[0]) === null || _val$brand_item$ === void 0 ? void 0 : _val$brand_item$.uuid) === 'b80f0a89c2e3cea57dcd5193fdb651fc'; // 条件3：非快递类

        var isKuaiDi = val === null || val === void 0 ? void 0 : val.delivery_method.includes(2); // 是否快递

        var condition3 = !isKuaiDi; // 非快递品取反
        // 条件4：非大惠商品

        var condition4 = (val === null || val === void 0 ? void 0 : (_val$brand_item$2 = val.brand_item[0]) === null || _val$brand_item$2 === void 0 ? void 0 : _val$brand_item$2.uuid) !== 'b80f0a89c2e3cea57dcd5193fdb651fc'; // 过滤选择大惠时，除了（属于大惠的商品 && 快递类）的其他都不显示操作区

        if (condition1 && (condition2 && condition3 || condition4)) {
          status = false;
        }

        return status;
      };
    }
  },
  created: function created() {
    var _this4 = this;

    return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
      return _regeneratorRuntime().wrap(function _callee2$(_context2) {
        while (1) {
          switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return _this4.init();

            case 2:
              _this4.$nextTick( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
                return _regeneratorRuntime().wrap(function _callee$(_context) {
                  while (1) {
                    switch (_context.prev = _context.next) {
                      case 0:
                        _this4.handler().getTopHeight();

                        _context.next = 3;
                        return _this4.handler().isShow();

                      case 3:
                        _this4.isLoginShow = !_this4.userInfo.mobile;

                      case 4:
                      case "end":
                        return _context.stop();
                    }
                  }
                }, _callee);
              })));

            case 3:
            case "end":
              return _context2.stop();
          }
        }
      }, _callee2);
    }))();
  },
  methods: {
    show: function show() {
      var _this5 = this;

      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
        var _yield$_this5$handler, info, vipShoppingInfo, _this5$params, brand_uuid, store_uuid;

        return _regeneratorRuntime().wrap(function _callee4$(_context4) {
          while (1) {
            switch (_context4.prev = _context4.next) {
              case 0:
                _context4.next = 2;
                return _this5.network().getVipInfo();

              case 2:
                _context4.next = 4;
                return _this5.handler().getLocalData();

              case 4:
                _yield$_this5$handler = _context4.sent;
                info = _yield$_this5$handler.info;
                vipShoppingInfo = _yield$_this5$handler.vipShoppingInfo;

                _this5.$set(_this5, 'userInfo', info);

                console.log('watch === show', vipShoppingInfo); // 判断缓存跟页面数据有无不同，针对详情切换门店做优化

                if (_this5.params.brand_uuid) {
                  _this5$params = _this5.params, brand_uuid = _this5$params.brand_uuid, store_uuid = _this5$params.store_uuid;
                  console.log('debugger === 11', _this5.params);

                  if (brand_uuid !== (vipShoppingInfo === null || vipShoppingInfo === void 0 ? void 0 : vipShoppingInfo.brandUuid)) {
                    console.log('debugger === 11-11');
                    _this5.params.brand_uuid = vipShoppingInfo === null || vipShoppingInfo === void 0 ? void 0 : vipShoppingInfo.brandUuid;
                    _this5.params.store_uuid = vipShoppingInfo === null || vipShoppingInfo === void 0 ? void 0 : vipShoppingInfo.storeUuid;
                  } else if (store_uuid !== (vipShoppingInfo === null || vipShoppingInfo === void 0 ? void 0 : vipShoppingInfo.storeUuid)) {
                    console.log('debugger === 11-22');
                    _this5.params.store_uuid = vipShoppingInfo === null || vipShoppingInfo === void 0 ? void 0 : vipShoppingInfo.storeUuid;
                  } else {
                    console.log('debugger === 11-33'); // this.search()
                  }
                } else {
                  console.log('debugger === 22');
                  _this5.params.brand_uuid = vipShoppingInfo === null || vipShoppingInfo === void 0 ? void 0 : vipShoppingInfo.brandUuid;
                  _this5.params.store_uuid = vipShoppingInfo === null || vipShoppingInfo === void 0 ? void 0 : vipShoppingInfo.storeUuid; // this.search()
                }

                _this5.search();

                _this5.$nextTick( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
                  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
                    while (1) {
                      switch (_context3.prev = _context3.next) {
                        case 0:
                          // 根据门店出现底部购物车栏
                          _this5.$refs.showCartRef.network().getCartLists();

                          if (_this5.params.store_uuid) {
                            _this5.$refs.shopStoreNode.refreshStore();
                          } // 选中的品牌出现在屏幕范围内


                          _context3.next = 4;
                          return _this5.handler().isShow();

                        case 4:
                        case "end":
                          return _context3.stop();
                      }
                    }
                  }, _callee3);
                })));

              case 12:
              case "end":
                return _context4.stop();
            }
          }
        }, _callee4);
      }))();
    },
    // 先不改
    refreshPageData: function refreshPageData() {
      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
        return _regeneratorRuntime().wrap(function _callee5$(_context5) {
          while (1) {
            switch (_context5.prev = _context5.next) {
              case 0:
              case "end":
                return _context5.stop();
            }
          }
        }, _callee5);
      }))();
    },
    init: function init() {
      var _this6 = this;

      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
        var _vipShoppingInfo$bran;

        var _yield$_this6$handler, info, vipShoppingInfo;

        return _regeneratorRuntime().wrap(function _callee6$(_context6) {
          while (1) {
            switch (_context6.prev = _context6.next) {
              case 0:
                _context6.next = 2;
                return _this6.network().getAllBrandList('init');

              case 2:
                _context6.next = 4;
                return _this6.handler().getLocalData();

              case 4:
                _yield$_this6$handler = _context6.sent;
                info = _yield$_this6$handler.info;
                vipShoppingInfo = _yield$_this6$handler.vipShoppingInfo;
                console.log('watch === init', vipShoppingInfo);
                _this6.userInfo = info;
                _this6.params.brand_uuid = (_vipShoppingInfo$bran = vipShoppingInfo === null || vipShoppingInfo === void 0 ? void 0 : vipShoppingInfo.brandUuid) !== null && _vipShoppingInfo$bran !== void 0 ? _vipShoppingInfo$bran : _this6.brandList[0].uuid;
                _this6.params.store_uuid = (vipShoppingInfo === null || vipShoppingInfo === void 0 ? void 0 : vipShoppingInfo.storeUuid) || '';
                console.log('params', _this6.params);

                _this6.$refs.shopStoreNode.init();

                _this6.network().getWindowSetting();

                _context6.next = 16;
                return _this6.network().getBrandDetail();

              case 16:
                _context6.next = 18;
                return _this6.network().getClassList();

              case 18:
              case "end":
                return _context6.stop();
            }
          }
        }, _callee6);
      }))();
    },
    //手机授权
    onGetPhoneNumber: function onGetPhoneNumber(e) {
      var _this7 = this;

      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
        return _regeneratorRuntime().wrap(function _callee7$(_context7) {
          while (1) {
            switch (_context7.prev = _context7.next) {
              case 0:
                if (!(e.detail.errMsg == 'getPhoneNumber:ok')) {
                  _context7.next = 5;
                  break;
                }

                _context7.next = 3;
                return _this7.network().login(e);

              case 3:
                _context7.next = 5;
                break;

              case 5:
              case "end":
                return _context7.stop();
            }
          }
        }, _callee7);
      }))();
    },
    // 切换品牌更新
    updateShopBrand: function updateShopBrand(e) {
      var _this8 = this;

      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
        return _regeneratorRuntime().wrap(function _callee8$(_context8) {
          while (1) {
            switch (_context8.prev = _context8.next) {
              case 0:
                _this8.params.brand_uuid = e.brand_uuid;
                _context8.next = 3;
                return _this8.handler().setLocalData(1, e.brand_uuid);

              case 3:
                _context8.next = 5;
                return _this8.network().getClassList();

              case 5:
                _context8.next = 7;
                return _this8.network().getBrandDetail();

              case 7:
                _this8.search(); // await this.network().getStoreList();
                // this.$refs.shopStoreNode.refreshStore();


              case 8:
              case "end":
                return _context8.stop();
            }
          }
        }, _callee8);
      }))();
    },
    // 切换门店更新
    updateShopStore: function updateShopStore(e) {
      var _this9 = this;

      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
        var index;
        return _regeneratorRuntime().wrap(function _callee9$(_context9) {
          while (1) {
            switch (_context9.prev = _context9.next) {
              case 0:
                _this9.params.store_uuid = e.store_uuid;
                _this9.storeName = e.store_name;
                index = _this9.brandList.findIndex(function (i) {
                  return i.uuid === _this9.params.brand_uuid;
                });

                if (index !== -1) {
                  _this9.brandIndex = index;
                }

                _context9.next = 6;
                return _this9.handler().setLocalData(2, e.store_uuid);

              case 6:
                _context9.next = 8;
                return _this9.network().getClassList();

              case 8:
                _context9.next = 10;
                return _this9.network().getBrandDetail();

              case 10:
                _this9.search();

              case 11:
              case "end":
                return _context9.stop();
            }
          }
        }, _callee9);
      }))();
    },
    onTop: function onTop() {
      var _this10 = this;

      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
        return _regeneratorRuntime().wrap(function _callee10$(_context10) {
          while (1) {
            switch (_context10.prev = _context10.next) {
              case 0:
                _this10.listArr = _this10.$options.data().listArr;

                _this10.$set(_this10, 'isRefresh', true);

                _this10.params.page = 1;
                _this10.params.class_id = ''; // 商品分类

                _this10.params.delivery_method = ''; // 配送方式

                _this10.deliveryIndex = 0; // 配送方式

                _context10.next = 8;
                return _this10.network().getCommodityList();

              case 8:
              case "end":
                return _context10.stop();
            }
          }
        }, _callee10);
      }))();
    },
    onBottom: function onBottom() {
      var _this11 = this;

      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
        var throttle, _this11$params, page, page_size, pageNew, newParams, _yield$getCommodityLi, data;

        return _regeneratorRuntime().wrap(function _callee11$(_context11) {
          while (1) {
            switch (_context11.prev = _context11.next) {
              case 0:
                // 增加节流
                throttle = _this11.throttleAction();

                if (throttle) {
                  _context11.next = 3;
                  break;
                }

                return _context11.abrupt("return");

              case 3:
                _this11.params.page += 1;
                _this11$params = _this11.params, page = _this11$params.page, page_size = _this11$params.page_size;
                pageNew = Math.ceil((page - 1) * page_size);

                if (!(pageNew >= _this11.goodsTotal)) {
                  _context11.next = 10;
                  break;
                }

                (0, _index.Toast)('没有更多数据');
                _this11.params.page -= 1;
                return _context11.abrupt("return");

              case 10:
                newParams = _objectSpread({}, _this11.params);
                if (!newParams.sort_type) delete newParams.sort_type;
                if (!newParams.is_pay_amount) delete newParams.is_pay_amount;
                if (!newParams.market_bi) delete newParams.market_bi;
                _context11.next = 16;
                return (0, _goods.getCommodityList)(newParams);

              case 16:
                _yield$getCommodityLi = _context11.sent;
                data = _yield$getCommodityLi.data;
                if (_this11.isRefresh) _this11.$set(_this11, 'isRefresh', false);
                _this11.goodsTotal = data.result.total;
                _this11.goodsList = _this11.goodsList.concat(data.result.data);

              case 21:
              case "end":
                return _context11.stop();
            }
          }
        }, _callee11);
      }))();
    },
    // 配送方式
    deliveryChange: function deliveryChange(e) {
      var index = e.detail.value * 1;
      this.deliveryIndex = index;
      this.params.delivery_method = this.deliveryList[index].value;
      if (!index) delete this.params.delivery_method;
      this.search(); // 搜索
    },
    // 分类
    changeType: function changeType(item) {
      this.params.class_id = item.id;
      this.search(); // 搜索
    },
    // 筛选
    screenChange: function screenChange(type) {
      switch (type) {
        case 1:
          // 惠花儿
          if (!this.params.sort_desc || this.params.sort_desc === 'desc') {
            this.params.sort_desc = 'asc';
          } else {
            this.params.sort_desc = 'desc';
          }

          this.params.sort_type = 1;
          this.params.is_pay_amount = null;
          this.params.market_bi = null;
          break;

        case 2:
          // 销量
          this.params.sort_type = 2;
          this.params.sort_desc = 'desc'; // 大到小排序

          this.params.is_pay_amount = null;
          this.params.market_bi = null;
          break;

        case 3:
          // 仅惠花儿兑换
          this.params.is_pay_amount = 1;
          this.params.sort_desc = '';
          this.params.sort_type = null;
          this.params.market_bi = null;
          break;

        case 4:
          // 我可兑换
          this.params.market_bi = this.biNumber;
          this.params.sort_desc = '';
          this.params.sort_type = null;
          this.params.is_pay_amount = null;
          break;
      }

      this.search(); // 搜索
    },
    // 切换品牌
    changeBrandCard: function changeBrandCard(item, index) {
      var _this12 = this;

      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
        return _regeneratorRuntime().wrap(function _callee12$(_context12) {
          while (1) {
            switch (_context12.prev = _context12.next) {
              case 0:
                _this12.params.store_uuid = '';
                _this12.params.class_id = ''; //

                _this12.params.brand_uuid = item.uuid;
                _context12.next = 5;
                return _this12.handler().setLocalData(1, item.uuid);

              case 5:
                _this12.brandIndex = index;

                _this12.$refs.shopStoreNode.init(); // if (item.name === "大惠企业") {
                //   this.params.brand_uuid = "";
                //   // 大惠企业传空不执行监听
                //   await this.handler().setLocalData(1, item.uuid)
                //   this.search();
                // }


              case 7:
              case "end":
                return _context12.stop();
            }
          }
        }, _callee12);
      }))();
    },
    changeStore: function changeStore() {
      var _this13 = this;

      var index = this.brandList.findIndex(function (i) {
        return i.uuid === _this13.params.brand_uuid;
      });

      if (index !== -1) {
        this.brandIndex = index;
      } // this.search();

    },
    // 搜索
    search: function search() {
      this.params.page = 1; // this.goodsList = [];

      this.network().getCommodityList();
    },
    // 添加商品到购物车 1堂食 2快递 3自提
    addGoods: function addGoods(type) {
      this.network().addShopCart(this.addCardInfo.id, type);
    },
    // 跳转到商品详情
    goDetail: function goDetail(item) {
      var id = item.id,
          _item$brand_item = item.brand_item,
          brand_item = _item$brand_item === void 0 ? [] : _item$brand_item;
      var uuid = "uuid=".concat(id);
      var brand_uuid = "&brand_uuid=".concat(brand_item[0].uuid);
      var store_uuid = ''; // 商品品牌跟选中品牌一致就传当前门店（针对大惠出现所有品牌包括他自己的优化）

      if (brand_item[0].uuid === this.params.brand_uuid) {
        store_uuid = "&store_uuid=".concat(this.params.store_uuid || '');
      }

      var brandName = "&brandName=".concat(this.brandName);
      var kms = "&kms=".concat(this.kms || '');
      var query = "".concat(uuid).concat(store_uuid).concat(brand_uuid).concat(brandName).concat(kms);
      console.log('query 22', query);
      uni.navigateTo({
        url: "/pagesB/points-mall/integralShop/detail?".concat(query)
      });
    },
    goIntegralCommodityRecordNew: function goIntegralCommodityRecordNew() {
      var source = '';

      if (!this.params.brand_uuid) {
        source = '&source=my';
      }

      uni.navigateTo({
        url: "/pagesB/points-mall/exchange/history?brand_uuid=".concat(this.params.brand_uuid, "&kms=").concat(this.kms || '', "&brandName=").concat(this.brandName).concat(source)
      });
    },
    handleBuy: function handleBuy(data) {
      if (data == 'no') {
        this.showShopp = false;
      } else {
        var addCardInfo = data.addCardInfo,
            type = data.type;
        this.network().addShopCart(addCardInfo.id, type);
      }
    },
    seeMore: function seeMore() {
      this.showShopp = false;
    },
    chooseMethods: function chooseMethods(item) {
      var _this14 = this;

      var itemNew = {};

      if (item.$orig) {
        itemNew = item.$orig;
      } else {
        itemNew = item;
      }

      if (itemNew.stock_num * 1 <= 0) {
        // Toast("商品已售罄");
        return;
      } else if (Number(itemNew.market_bi) > Number(this.biNumber)) {
        // Toast("余额不足");
        return;
      }

      if (this.checkStore()) return;
      var isQuota = itemNew.limit_pay_num * 1 > 0; // 是否限购

      if (isQuota && itemNew.card_num >= itemNew.residue_limit_pay_num) {
        var text = itemNew.residue_limit_pay_num * 1 ? "\u60A8\u6700\u591A\u53EF\u8D2D\u4E70".concat(itemNew.residue_limit_pay_num, "\u4EFD") : '您已到达购买上限';
        this.hxToastText = "\u9650\u8D2D".concat(itemNew.limit_pay_num, "\u4EFD\uFF0C").concat(text);
        this.isHxToast = true;
        this.timerId = setTimeout(function () {
          _this14.isHxToast = false; // 要求2：清除定时器

          clearTimeout(_this14.timerId);
        }, 2000);
        return;
      } // 如果只有一个配送方式直接购买去购买


      if (itemNew.delivery_method.length === 1) {
        this.network().addShopCart(itemNew.id, itemNew.delivery_method[0]);
        return;
      }

      this.$refs.changeMethodsNode.open(itemNew.delivery_method);
      this.addCardInfo = itemNew;
    },
    checkStore: function checkStore() {
      if (!this.params.store_uuid) {
        this.$refs.shopStoreNode.moreStoreShow = true;
        return true;
      }

      return false;
    },
    onClickAssetsDet: function onClickAssetsDet(type) {
      // Url type 1 弹出
      var url = "/pagesA/brandInfo/balance?uuid=".concat(this.params.brand_uuid, "&type=1&name=").concat(this.brandName, "&BgUrl=").concat(this.BgUrl);
      type === 1 && (url += '&assestShow=1');
      this.navigateTo(url);
    },
    onLogin: function onLogin(e) {
      var _this15 = this;

      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
        return _regeneratorRuntime().wrap(function _callee13$(_context13) {
          while (1) {
            switch (_context13.prev = _context13.next) {
              case 0:
                _context13.next = 2;
                return _this15.network().login(e);

              case 2:
              case "end":
                return _context13.stop();
            }
          }
        }, _callee13);
      }))();
    },
    // 取消授权
    cancelMobile: function cancelMobile() {
      this.isLoginShow = false;
    },

    /**
     * 监听菜品列表滚动，定位菜品分类
     * */
    getScrollTop: function getScrollTop(e) {
      var _this16 = this;

      var scrollTop = e.detail.scrollTop;
      if (this.timer) clearInterval(this.timer);
      this.timer = setTimeout(function () {
        _this16.handler().isScrollEnd(scrollTop, _this16);
      }, 200);
      this.start_time = scrollTop;
      this.showFloat = false;
    },
    // 悬浮按钮
    onFloat: function onFloat() {
      var _this$windowData = this.windowData,
          jump_type = _this$windowData.jump_type,
          page_url = _this$windowData.page_url,
          appid = _this$windowData.appid,
          activity_url = _this$windowData.activity_url,
          h5_url = _this$windowData.h5_url,
          name = _this$windowData.name;
      var mobile = uni.getStorageSync('info').mobile;
      var token = uni.getStorageSync('access_token');
      var url = '';

      switch (jump_type) {
        case 1:
          //营销工具
          if (activity_url.indexOf('?') >= 0) {
            url = "".concat(activity_url, "&token=").concat(token, "&mobile=").concat(mobile);
          } else {
            url = "".concat(activity_url, "?token=").concat(token, "&mobile=").concat(mobile);
          }

          console.log('营销工具', url);
          uni.setStorageSync('webViewUrl', url);
          this.navigateTo(url); // this.navigateTo('/pages/web-view/index')

          break;

        case 2:
          //外部小程序
          uni.navigateToMiniProgram({
            appId: appid,
            path: page_url
          });
          break;

        case 3:
          //h5链接
          if (h5_url.indexOf('?') >= 0) {
            url = "".concat(h5_url, "&token=").concat(token, "&mobile=").concat(mobile);
          } else {
            url = "".concat(h5_url, "?token=").concat(token, "&mobile=").concat(mobile);
          }

          uni.setStorageSync('webViewUrl', url);
          this.navigateTo('/pages/web-view/index');
          break;

        case 4:
          //内部小程序
          // debugger
          console.log('page_url', page_url);

          if (page_url.indexOf('https') != -1) {
            url = "".concat(page_url, "?token=").concat(token, "&mobile=").concat(mobile);
            uni.setStorageSync('webViewUrl', url);
            this.navigateTo('/pages/web-view/index');
          } else {
            var _url = page_url;
            if (name == '常见问题') _url += '?type=7';
            if (name == '隐私政策') _url += '?type=8';

            if (page_url.indexOf('/') === 0) {
              name == '会员商城' ? this.reLaunch(_url) : this.navigateTo(_url);
            } else {
              this.navigateTo("/".concat(_url));
            }
          }

          break;

        case 5:
          //  5:跳转视频号
          wx.getChannelsLiveInfo({
            finderUserName: appid,
            success: function success(e) {
              console.log('视频号直播信息 success', e);
              wx.openChannelsLive({
                finderUserName: appid,
                success: function success(ee) {
                  console.log('openChannelsLive success', ee);
                  wx.openChannelsLive();
                },
                fail: function fail(error) {
                  console.log('openChannelsLive fail', error);
                }
              });
            },
            fail: function fail(err) {
              console.log('视频号直播信息 fail', err);
            }
          });
          break;

        default:
          break;
      }
    },
    network: function network() {
      var _this17 = this;

      return {
        login: function () {
          var _login = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(e) {
            return _regeneratorRuntime().wrap(function _callee15$(_context15) {
              while (1) {
                switch (_context15.prev = _context15.next) {
                  case 0:
                    _context15.next = 2;
                    return wx.login({
                      success: function () {
                        var _success = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(_ref3) {
                          var code, _yield$appCodeLogin, data;

                          return _regeneratorRuntime().wrap(function _callee14$(_context14) {
                            while (1) {
                              switch (_context14.prev = _context14.next) {
                                case 0:
                                  code = _ref3.code;
                                  _context14.next = 3;
                                  return (0, _home.appCodeLogin)({
                                    code: code
                                  });

                                case 3:
                                  _yield$appCodeLogin = _context14.sent;
                                  data = _yield$appCodeLogin.data;
                                  uni.setStorageSync('userInfo', data.result);
                                  uni.setStorageSync('access_token', data.result.access_token); //允许授权 ，调用登录接口

                                  _context14.next = 9;
                                  return (0, _home.bindingMobilePhone)({
                                    encryptedData: e.detail.encryptedData,
                                    iv: e.detail.iv,
                                    code: e.detail.code
                                  });

                                case 9:
                                  _context14.next = 11;
                                  return _this17.network().getVipInfo();

                                case 11:
                                  _context14.next = 13;
                                  return _this17.show();

                                case 13:
                                  _this17.isLoginShow = false;

                                case 14:
                                case "end":
                                  return _context14.stop();
                              }
                            }
                          }, _callee14);
                        }));

                        function success(_x2) {
                          return _success.apply(this, arguments);
                        }

                        return success;
                      }()
                    });

                  case 2:
                  case "end":
                    return _context15.stop();
                }
              }
            }, _callee15);
          }));

          function login(_x) {
            return _login.apply(this, arguments);
          }

          return login;
        }(),
        // 获取个人会员资料
        getVipInfo: function () {
          var _getVipInfo2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
            var _yield$_getVipInfo, data;

            return _regeneratorRuntime().wrap(function _callee16$(_context16) {
              while (1) {
                switch (_context16.prev = _context16.next) {
                  case 0:
                    _context16.next = 2;
                    return (0, _user.getVipInfo)();

                  case 2:
                    _yield$_getVipInfo = _context16.sent;
                    data = _yield$_getVipInfo.data;
                    uni.setStorageSync('info', data.user_info);
                    uni.setStorageSync('memberInfo', data.member_info);

                  case 6:
                  case "end":
                    return _context16.stop();
                }
              }
            }, _callee16);
          }));

          function getVipInfo() {
            return _getVipInfo2.apply(this, arguments);
          }

          return getVipInfo;
        }(),
        // 品牌列表
        getAllBrandList: function () {
          var _getAllBrandList2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(type) {
            var _data$result$;

            var _yield$_getAllBrandLi, data;

            return _regeneratorRuntime().wrap(function _callee17$(_context17) {
              while (1) {
                switch (_context17.prev = _context17.next) {
                  case 0:
                    _context17.next = 2;
                    return (0, _brandInfo.getAllBrandList)();

                  case 2:
                    _yield$_getAllBrandLi = _context17.sent;
                    data = _yield$_getAllBrandLi.data;

                    if (type === 'init') {
                      data.result.forEach(function (item, i) {
                        if (item.uuid === _this17.params.brand_uuid) {
                          _this17.brandIndex = i;
                        }
                      }); // data.result.find((item, i) => {
                      //   if (item.uuid === this.params.brand_uuid) {
                      //     this.brandIndex = i
                      //     return true
                      //   }
                      //   return false
                      // })
                    }

                    _this17.brandList = data.result;
                    console.log('brandList', _this17.brandList);
                    _this17.BgUrl = _this17.imgDomain + ((_data$result$ = data.result[0]) === null || _data$result$ === void 0 ? void 0 : _data$result$.bg_image);

                  case 8:
                  case "end":
                    return _context17.stop();
                }
              }
            }, _callee17);
          }));

          function getAllBrandList(_x3) {
            return _getAllBrandList2.apply(this, arguments);
          }

          return getAllBrandList;
        }(),

        /**
         * @description 门店列表
         * @param {string} city 城市(不传获取全部门店,第一个为最近距离)
         */
        getStoreList: function () {
          var _getStoreList2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(city) {
            var params, _yield$_getStoreList, data;

            return _regeneratorRuntime().wrap(function _callee18$(_context18) {
              while (1) {
                switch (_context18.prev = _context18.next) {
                  case 0:
                    params = {
                      page: 1,
                      page_size: 999,
                      brand_uuid: _this17.vipShoppingInfo.brandUuid
                    };

                    if (city) {
                      params.city = city;
                    }

                    if (Object.keys(_this17.currentPosition).length) {
                      params.coordinates = JSON.stringify({
                        lat: _this17.currentPosition.latitude,
                        long: _this17.currentPosition.longitude
                      });
                    }

                    params.is_status = 1; // 过滤禁用门店

                    _context18.next = 6;
                    return (0, _brandInfo.getStoreList)(params);

                  case 6:
                    _yield$_getStoreList = _context18.sent;
                    data = _yield$_getStoreList.data;
                    _this17.storeList = data.result.list;

                  case 9:
                  case "end":
                    return _context18.stop();
                }
              }
            }, _callee18);
          }));

          function getStoreList(_x4) {
            return _getStoreList2.apply(this, arguments);
          }

          return getStoreList;
        }(),
        // 商品分类
        getClassList: function () {
          var _getClassList2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
            var queryData, _yield$_getClassList, data;

            return _regeneratorRuntime().wrap(function _callee19$(_context19) {
              while (1) {
                switch (_context19.prev = _context19.next) {
                  case 0:
                    queryData = {
                      brand_uuid: _this17.params.brand_uuid
                    }; // // 品牌大惠显示所有的分类 - 测试环境ID
                    // if (queryData.brand_uuid === '0beb289e4ee65596cc52f2addf19df2e') {
                    //   queryData.brand_uuid = ''
                    // }
                    // // 品牌大惠显示所有的分类 - 正式环境ID
                    // if (queryData.brand_uuid === 'b80f0a89c2e3cea57dcd5193fdb651fc') {
                    //   queryData.brand_uuid = ''
                    // }

                    _context19.next = 3;
                    return (0, _goods.getClassList)(queryData);

                  case 3:
                    _yield$_getClassList = _context19.sent;
                    data = _yield$_getClassList.data;
                    _this17.typeList = data.result.map(function (item) {
                      return {
                        text: item.name,
                        id: item.id
                      };
                    });

                    _this17.typeList.unshift({
                      text: '全部',
                      id: ''
                    });

                  case 7:
                  case "end":
                    return _context19.stop();
                }
              }
            }, _callee19);
          }));

          function getClassList() {
            return _getClassList2.apply(this, arguments);
          }

          return getClassList;
        }(),
        // 商品列表
        getCommodityList: function () {
          var _getCommodityList2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
            var newParams, _yield$_getCommodityL, data;

            return _regeneratorRuntime().wrap(function _callee20$(_context20) {
              while (1) {
                switch (_context20.prev = _context20.next) {
                  case 0:
                    newParams = _objectSpread({}, _this17.params);
                    if (!newParams.sort_type) delete newParams.sort_type;
                    if (!newParams.is_pay_amount) delete newParams.is_pay_amount;
                    if (!newParams.market_bi) delete newParams.market_bi;
                    _context20.next = 6;
                    return (0, _goods.getCommodityList)(newParams);

                  case 6:
                    _yield$_getCommodityL = _context20.sent;
                    data = _yield$_getCommodityL.data;
                    if (_this17.isRefresh) _this17.$set(_this17, 'isRefresh', false);
                    _this17.goodsTotal = data.result.total;
                    _this17.goodsList = data.result.data;

                  case 11:
                  case "end":
                    return _context20.stop();
                }
              }
            }, _callee20);
          }));

          function getCommodityList() {
            return _getCommodityList2.apply(this, arguments);
          }

          return getCommodityList;
        }(),
        // 当前门店的货币类型文案/用户货币数量
        getBrandDetail: function () {
          var _getBrandDetail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
            var _yield$brandDet, data, _data$result, member_assets_config, member_assets;

            return _regeneratorRuntime().wrap(function _callee21$(_context21) {
              while (1) {
                switch (_context21.prev = _context21.next) {
                  case 0:
                    _context21.next = 2;
                    return (0, _brandInfo.brandDet)({
                      brand_uuid: _this17.params.brand_uuid
                    });

                  case 2:
                    _yield$brandDet = _context21.sent;
                    data = _yield$brandDet.data;

                    if (data.result.member_assets_config) {
                      _data$result = data.result, member_assets_config = _data$result.member_assets_config, member_assets = _data$result.member_assets;
                      _this17.showContent = member_assets_config.content;
                      _this17.showRefresh = !_this17.showRefresh;
                      _this17.biNumber = member_assets.member_market_bi || 0;
                    }

                  case 5:
                  case "end":
                    return _context21.stop();
                }
              }
            }, _callee21);
          }));

          function getBrandDetail() {
            return _getBrandDetail.apply(this, arguments);
          }

          return getBrandDetail;
        }(),
        // 加入购物车
        addShopCart: function () {
          var _addShopCart = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(commodity_id, commodity_type) {
            var num,
                _this17$params,
                brand_uuid,
                store_uuid,
                params,
                _yield$IntegralCommod,
                data,
                _args22 = arguments;

            return _regeneratorRuntime().wrap(function _callee22$(_context22) {
              while (1) {
                switch (_context22.prev = _context22.next) {
                  case 0:
                    num = _args22.length > 2 && _args22[2] !== undefined ? _args22[2] : 1;
                    _this17$params = _this17.params, brand_uuid = _this17$params.brand_uuid, store_uuid = _this17$params.store_uuid;
                    params = {
                      commodity_id: commodity_id,
                      brand_uuid: brand_uuid,
                      num: num,
                      commodity_type: commodity_type,
                      store_uuid: store_uuid
                    };
                    uni.showLoading();
                    _context22.next = 6;
                    return (0, _goods.IntegralCommodityShopCart)(params);

                  case 6:
                    _yield$IntegralCommod = _context22.sent;
                    data = _yield$IntegralCommod.data;

                    _this17.search(); // 刷新列表获取单品加入购物车数量


                    _this17.Toast("".concat(num > 0 ? '加入' : '移除', "\u8D2D\u7269\u8F66\u6210\u529F"));

                    uni.hideLoading();

                    if (data.result) {
                      _this17.isShoppingCart = true;

                      _this17.$refs.showCartRef.network().getCartLists();
                    } else {
                      _this17.isShoppingCart = false;
                    }

                  case 12:
                  case "end":
                    return _context22.stop();
                }
              }
            }, _callee22);
          }));

          function addShopCart(_x5, _x6) {
            return _addShopCart.apply(this, arguments);
          }

          return addShopCart;
        }(),
        // 获取浮窗配置
        getWindowSetting: function () {
          var _getWindowSetting2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
            var _yield$_getWindowSett, data, _this17$windowData, jump_type, appid;

            return _regeneratorRuntime().wrap(function _callee23$(_context23) {
              while (1) {
                switch (_context23.prev = _context23.next) {
                  case 0:
                    _context23.next = 2;
                    return (0, _home.getWindowSetting)({
                      type: 3
                    });

                  case 2:
                    _yield$_getWindowSett = _context23.sent;
                    data = _yield$_getWindowSett.data;
                    _this17.windowData = data.result;
                    console.log('获取浮窗配置', _this17.windowData);
                    _this17$windowData = _this17.windowData, jump_type = _this17$windowData.jump_type, appid = _this17$windowData.appid;

                    if (Number(jump_type) === 5) {
                      wx.getChannelsLiveInfo({
                        finderUserName: appid,
                        success: function success(e) {
                          _this17.isVideoLive = e.status === 2; // 直播状态 2直播中
                        },
                        fail: function fail(err) {
                          console.log('视频号直播信息 fail', err);
                        }
                      });
                    }

                  case 8:
                  case "end":
                    return _context23.stop();
                }
              }
            }, _callee23);
          }));

          function getWindowSetting() {
            return _getWindowSetting2.apply(this, arguments);
          }

          return getWindowSetting;
        }()
      };
    },
    handler: function handler() {
      var _this18 = this;

      return {
        getTopHeight: function getTopHeight() {
          _this18.pageTitle = '会员商城'; // 获取胶囊位置

          var menuButtonInfo = uni.getMenuButtonBoundingClientRect(); // 获取导航栏上边距（胶囊顶部位置）

          _this18.navBarMarginTop = menuButtonInfo.top; // 导航栏高度 = 胶囊底部位置 - 胶囊顶部位置

          _this18.navBarHeight = menuButtonInfo.bottom - menuButtonInfo.top;

          _this18.handler().getListBoxHeight(_this18.navBarHeight);
        },
        getListBoxHeight: function getListBoxHeight(top) {
          var view = uni.createSelectorQuery().in(_this18);
          view.select('.list_box').boundingClientRect(function (data) {
            // 高度 = div距离顶部高度 + 导航栏高度 + 底部导航栏高度
            _this18.listBoxHeight = data.top + 110;

            _this18.handler().getGoodsListHeight(top);
          }).exec();
        },
        getGoodsListHeight: function getGoodsListHeight() {
          var view = uni.createSelectorQuery().in(_this18);
          view.select('.goodsList').boundingClientRect(function (data) {
            console.log('getGoodsListHeight DOM', data);
            _this18.goodsBoxHeight = data.top + 48;
          }).exec();
        },
        // 获取本地缓存
        getLocalData: function getLocalData() {
          return new Promise(function (resolve) {
            var info = uni.getStorageSync('info');
            var vipShoppingInfo = uni.getStorageSync('vipShoppingInfo') || {};
            var obj = {
              info: info,
              vipShoppingInfo: vipShoppingInfo
            };
            resolve(obj);
          });
        },
        // 存储本地缓存
        setLocalData: function setLocalData(type, uuid) {
          // 不使用同步会导致数据还未存储就跳转页面或者获取失败
          return new Promise( /*#__PURE__*/function () {
            var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(resolve) {
              var _yield$_this18$handle, vipShoppingInfo, obj;

              return _regeneratorRuntime().wrap(function _callee24$(_context24) {
                while (1) {
                  switch (_context24.prev = _context24.next) {
                    case 0:
                      _context24.next = 2;
                      return _this18.handler().getLocalData();

                    case 2:
                      _yield$_this18$handle = _context24.sent;
                      vipShoppingInfo = _yield$_this18$handle.vipShoppingInfo;
                      obj = {};

                      if (vipShoppingInfo) {
                        obj = _objectSpread({}, vipShoppingInfo);
                      }

                      if (type === 1) {
                        obj.brandUuid = uuid; // 品牌变动删除门店

                        delete obj.storeUuid;
                      }

                      if (type === 2) {
                        obj.storeUuid = uuid;
                      }

                      uni.setStorageSync('vipShoppingInfo', obj);
                      resolve(obj);

                    case 10:
                    case "end":
                      return _context24.stop();
                  }
                }
              }, _callee24);
            }));

            return function (_x7) {
              return _ref4.apply(this, arguments);
            };
          }());
        },
        // 选中的品牌出现在屏幕范围内
        isShow: function isShow() {
          // 改成同步是针对数据获取较慢问题
          return new Promise(function (resolve) {
            var query = uni.createSelectorQuery().in(_this18);
            query.select('.active-brand').boundingClientRect(); // 假设选择第一个子元素

            query.select('.swiper-container-brand3').boundingClientRect();
            query.exec(function (res) {
              console.log('选中的品牌出现在屏幕范围内', res);
              var _res$ = res[0],
                  childRight = _res$.right,
                  childWidth = _res$.width;
              var parentRight = res[1].right;

              if (childRight > parentRight) {
                // 如果子元素位置超过父级容器最右边，则需要调整滚动距离
                var scrollLeft = childRight - parentRight + childWidth;
                _this18.scrollLeft = scrollLeft;
              }

              resolve();
            });
          });
        },
        isScrollEnd: function isScrollEnd(t, vm) {
          _this18.end_time = t;
          if (_this18.start_time != _this18.end_time) return; // debugger

          vm.goodsList.forEach(function (item, index) {
            if (t >= (item.top - 20 || -1000) && t < item.top + item.height) vm.dishesSortInd = index;
          });
          vm.showFloat = true;
        }
      };
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

/***/ }),

/***/ 500:
/*!***************************************************************************************!*\
  !*** ./src/pages/home/components/home-activity.vue?vue&type=style&index=0&lang=scss& ***!
  \***************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home-activity.vue?vue&type=style&index=0&lang=scss& */ 501);
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_home_activity_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 501:
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/pages/home/components/home-activity.vue?vue&type=style&index=0&lang=scss& ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ })

}]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/home/components/home-activity.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/home/components/home-activity-create-component',
    {
        'pages/home/components/home-activity-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('1')['createComponent'](__webpack_require__(495))
        })
    },
    [['pages/home/components/home-activity-create-component']]
]);
